package cos.titlegetter;

import com.qotsa.exception.InvalidHandle;

import cos.entity.Song;

public class TitleGetterManager {
	private TitleGetter[] getters;

	public TitleGetterManager() {
		TitleGetter[] temp = { new DllTitleGetter(), new ProcessTitleGetter() };
		getters = temp;
	}

	public Song getCurrentSongTitle() throws InvalidHandle {
		for (TitleGetter current : getters) {
			Song song = current.getCurrentSongTitle();
			if (song != null)
				return song;
		}
		return null;
	}
}
